#include <stdio.h>
struct Dog
{   char *name;
    int age;
    double weight;
    /* data */
};  

char *showDog(struct Dog dog){
    static char info[100];
    printf(info,"Dog name is %s, age is %d, weight is %.2f\n",dog.name,dog.age,dog.weight);
    return info;
}
int main(void)
{
    struct Dog dog1;
    char *info = NULL;
     dog1.name = "大黄";
  dog1.age = 1;
  dog1.weight = 3.4;
    info = showDog(dog1);
    printf("%s",info);
    printf("main中小狗名字:%s \n", dog1.name);
    
    return 0;
}